FROM python:3

WORKDIR /ipService

COPY requirements.txt ./
RUN pip install --default-timeout=100 --no-cache-dir -r requirements.txt -i https://pypi.douban.com/simple

COPY . .
EXPOSE 8080

CMD [ "python","-u", "./main.py","8080" ]